package cn.edu.sgu.www.mhxysy.service.children_equipment.impl;

import cn.edu.sgu.www.mhxysy.entity.children_equipment.ChildrenEquipmentCategory;
import cn.edu.sgu.www.mhxysy.mapper.children_equipment.ChildrenEquipmentCategoryMapper;
import cn.edu.sgu.www.mhxysy.service.children_equipment.ChildrenEquipmentCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ChildrenEquipmentCategoryServiceImpl implements ChildrenEquipmentCategoryService {

    private final ChildrenEquipmentCategoryMapper childrenEquipmentCategoryMapper;

    @Autowired
    public ChildrenEquipmentCategoryServiceImpl(ChildrenEquipmentCategoryMapper childrenEquipmentCategoryMapper) {
        this.childrenEquipmentCategoryMapper = childrenEquipmentCategoryMapper;
    }

    @Override
    public List<ChildrenEquipmentCategory> selectAll() {
        return childrenEquipmentCategoryMapper.selectList(null);
    }

    @Override
    public ChildrenEquipmentCategory selectById(Integer id) {
        return childrenEquipmentCategoryMapper.selectById(id);
    }

}